home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_3.adf / Compiler_headers / Include / ios1.h < prev    next >
C/C++ Source or Header  |  1992-07-30  |  1KB  |  53 lines

  1. /* Copyright (c) 1992 SAS Institute, Inc., Cary, NC USA */
  2. /* All Rights Reserved */
  3.  
  4.  
  5. #ifndef _IOS1_H
  6. #define _IOS1_H 1
  7.  
  8.  
  9. /***
  10. *
  11. * The following structure is a UNIX file block that retains information about
  12. * a file being accessed via the level 1 I/O functions.
  13. *
  14. ***/
  15.  
  16. struct UFB {
  17.     struct UFB *ufbnxt;   /* next UFB */
  18.     int ufbflg;          /* flags */
  19.     long ufbfh;          /* file handle */
  20.     char *ufbfn;          /* file name */
  21. };
  22.  
  23. #define NUFBS 40      /* was number of UFBs defined (not used) */
  24.  
  25.  
  26. /***
  27. *
  28. * UFB.ufbflg definitions
  29. *
  30. ***/
  31.  
  32. #define UFB_RA   0x1   /* reading is allowed */
  33. #define UFB_WA   0x2   /* writing is allowed */
  34. #define UFB_CLO  0x4   /* use CLose to close not _close */
  35. #define UFB_NC   0x10  /* no close */
  36. #define UFB_APP  0x20  /* append on write */
  37. #define UFB_XLAT 0x40  /* translate */
  38. #define UFB_TEMP 0x80  /** temporary file */
  39.  
  40. /***
  41. *
  42. * External definitions
  43. *
  44. ***/
  45.  
  46. extern int __nufbs;
  47. extern struct UFB *__ufbs;
  48.  
  49. extern struct UFB *__chkufb(int);
  50. #define   chkufb    __chkufb
  51.  
  52. #endif
  53.